package com.heaboy.emaidemo1.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 多邮箱配置属性类
 * 用于绑定application.yml中的email配置
 */
@ConfigurationProperties(prefix = "email")
@Component
@Data
public class MultiEmailProperties {
    
    /**
     * 邮箱配置列表
     */
    private List<EmailConfig> senders;
    
    /**
     * 发送策略配置
     */
    private EmailStrategy strategy;
}

